﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SeniorEvent
{

   

    public partial class FrmMain : Form
    {
        public FrmMain()
        {
            InitializeComponent();
        }

        private void ShowMsg(string content)
        {

            textBox1.Text += content + "\r\n";
        }

        private void button2_Click(object sender, EventArgs e)
        {
            for (int a = 0; a < 5; a++)
            {
                FrmChild frmChild = new FrmChild(a);
                frmChild.Show();
                frmChild.sendContent = ShowMsg;
            }
        }
    }
}
